package com.kfm.usermanagement.service;

import com.kfm.usermanagement.mapper.DeptMapper;
import com.kfm.usermanagement.model.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DeptService {

    @Autowired
    private DeptMapper mapper;

    public List<Dept> findAll() {
        return mapper.selectAll();
    }
}
